
# myfile = open('/etc/passwd')
# s = myfile.read()
# myfile.close()

# myfile = open('/etc/passwd')
with open('/etc/passwd') as myfile:
    s = myfile.read()

print('文件中的内容是：', s)
